package com.ruoyi.event.domain.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 检测计划业务对象 event_jcjh
 *
 * @author strongme
 * @date 2023-02-04
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EventJcjhBo extends BaseEntity {

    /**
     * id
     */
    @NotNull(message = "id不能为空", groups = {EditGroup.class})
    private Long jcjhId;

    /**
     * 吸毒人员id
     */
    @NotNull(message = "吸毒人员id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 代检测工作人员ID
     */
    private Long memberId;

    /**
     * 检测人
     */
    @NotBlank(message = "检测人不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jcr;

    /**
     * 检测类型
     */
    @NotBlank(message = "检测类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jclx;

    /**
     * 检测方式
     */
    @NotBlank(message = "检测方式不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jcfs;

    /**
     * 检测日期
     */
    @NotNull(message = "检测日期不能为空", groups = {AddGroup.class, EditGroup.class})
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date jcrq;

    /**
     * 检测周期
     */
    private String cycleRange;

    /**
     * 检测结果
     */
    @NotBlank(message = "检测结果不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jcjg;

    /**
     * 检测地点
     */
    @NotBlank(message = "检测地点不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jcdd;

    /**
     * 检测报告
     */
    @NotBlank(message = "检测报告不能为空", groups = {AddGroup.class, EditGroup.class})
    private String jcbg;

    /**
     * 视频上传
     */
    private String sp;

    /**
     * 附件
     */
    private String fj;

    /**
     * 纬度
     */
    private BigDecimal lat;

    /**
     * 经度
     */
    private BigDecimal lng;

    /**
     * 备注
     */
    private String remark;

    /**
     * 审核状态
     */
    @NotBlank(message = "审核状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private String status;

    /**
     * 审批人
     */
    private Long spr;

    /**
     * 签到开始时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date start;

    /**
     * 签到结束时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date end;


}
